package com.tsd.common.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件存储表
 *
 * @author Hillpool
 * @date 2022/09/15 17:13:17
 */
@ApiModel(description = "文件存储表")
public class CommonStorage implements Serializable {

    @ApiModelProperty(value = "", example = "1")
    private Integer id;

    @ApiModelProperty(value = "文件的唯一索引", example = "1")
    private String key;

    @ApiModelProperty(value = "文件名", example = "1")
    private String name;

    @ApiModelProperty(value = "文件类型", example = "1")
    private String type;

    @ApiModelProperty(value = "文件大小", example = "1")
    private Integer size;

    @ApiModelProperty(value = "文件访问链接", example = "1")
    private String url;

    @ApiModelProperty(value = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date add_time;

    @ApiModelProperty(value = "更新时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date update_time;

    @ApiModelProperty(value = "逻辑删除", example = "1")
    private Boolean deleted;


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSize() {
        return this.size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getAdd_time() {
        return this.add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    public Date getUpdate_time() {
        return this.update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Boolean getDeleted() {
        return this.deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

}
